/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.lczyfy.idcp.modules.crawl.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfy.idcp.common.persistence.DataEntity;

/**
 * 爬虫目标Entity
 * @author cw
 * @version 2018-07-20
 */
public class CrawlWebChild extends DataEntity<CrawlWebChild> {
	
	private static final long serialVersionUID = 1L;
	private CrawlWebMain webMain;		// 主id 父类
	private String webName;		// web_name
	private String url;		// url
	private String stat;
	private String listXpath;		// list_xpath
	private String pageXpath;		// page_xpath
	private String nextNum;		// next_num
	
	public CrawlWebChild() {
		super();
	}

	public CrawlWebChild(String id){
		super(id);
	}

	public CrawlWebChild(CrawlWebMain webMain){
		this.webMain = webMain;
	}

	@Length(min=0, max=64, message="主id长度必须介于 0 和 64 之间")
	public CrawlWebMain getWebMain() {
		return webMain;
	}

	public void setWebMain(CrawlWebMain webMain) {
		this.webMain = webMain;
	}
	
	@Length(min=0, max=128, message="web_name长度必须介于 0 和 128 之间")
	public String getWebName() {
		return webName;
	}

	public void setWebName(String webName) {
		this.webName = webName;
	}
	
	@Length(min=0, max=256, message="url长度必须介于 0 和 256 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	@Length(min=0, max=256, message="list_xpath长度必须介于 0 和 256 之间")
	public String getListXpath() {
		return listXpath;
	}

	public void setListXpath(String listXpath) {
		this.listXpath = listXpath;
	}
	
	@Length(min=0, max=256, message="page_xpath长度必须介于 0 和 256 之间")
	public String getPageXpath() {
		return pageXpath;
	}

	public void setPageXpath(String pageXpath) {
		this.pageXpath = pageXpath;
	}
	
	public String getStat() {
		return stat;
	}

	public void setStat(String stat) {
		this.stat = stat;
	}

	@Length(min=0, max=11, message="next_num长度必须介于 0 和 11 之间")
	public String getNextNum() {
		return nextNum;
	}

	public void setNextNum(String nextNum) {
		this.nextNum = nextNum;
	}
	
}